package com.maybach.dubbo.api.model;


import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * Created by houenxun on 16/1/26.
 * 个人认证信息
 */
public class PersonCertificateModel extends BaseAuditModel implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    @NotNull
    private Long userId;
    @NotBlank
    /**
     * 身份证号码
     */
    private String certNo;
    /**
     * 真实姓名
     */
    @NotBlank
    private String realName;

    /**
     * 身份证照片
     */
    @NotEmpty
    @Size(max = 9)
    private List<String> certImgs;
    @NotEmpty
    @Size(max = 9)
    private List<String> visitingCardImgs;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public List<String> getCertImgs() {
        return certImgs;
    }

    public void setCertImgs(List<String> certImgs) {
        this.certImgs = certImgs;
    }

    public List<String> getVisitingCardImgs() {
        return visitingCardImgs;
    }

    public void setVisitingCardImgs(List<String> visitingCardImgs) {
        this.visitingCardImgs = visitingCardImgs;
    }

    @Override
    public String toString() {
        return "PersonApplyModel{" +
                "userId=" + userId +
                ", certNo='" + certNo + '\'' +
                ", realName='" + realName + '\'' +
                ", certImgs=" + certImgs +
                ", visitingCardImgs=" + visitingCardImgs +
                '}';
    }
}
